import 'dart:convert';
import 'package:enterprise_v6_app/app/data/entities/application/execute_entity.dart';
import 'package:enterprise_v6_app/generated/json/apply_user_entity.g.dart';
import 'package:enterprise_v6_app/generated/json/base/json_field.dart';

export 'package:enterprise_v6_app/generated/json/apply_user_entity.g.dart';

@JsonSerializable()
class ApplyUserEntity {
  ApplyUserEntity();

  factory ApplyUserEntity.fromJson(Map<String, dynamic> json) =>
      $ApplyUserEntityFromJson(json);

  /// 选中的作业
  String? selectedJobList;

  /// 申请人ID
  String? applyUserId;

  /// 申请人姓名
  String? applyUserName;

  // /// 监护人ID
  // String? guardianUserId;
  //
  // /// 监护人姓名
  // String? guardianUserName;

  /// 监护人列表
  List<ExecuteTicketReceiptListOperatorLists> guardianList =[];

  /// 作业大类字典ID
  String? ticketBigTypeId;

  /// 作业大类字典名称
  String? ticketBigTypeName;

  /// 作业细类字典ID(某些接口也为作业大类字典ID)
  String? ticketTypeId;

  /// 作业细类字典名称(某些接口也为作业大类字典ID)
  String? ticketTypeName;

  /// 数据是否允许修改
  bool allowModification = true;

  Map<String, dynamic> toJson() => $ApplyUserEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
